<%@page import="org.proddevplm.dao.data.designForX.DfXGuidelines"%>
<%@page import="java.util.List"%>

<script>

	function loadDetailsWithReq(request, page){
		$.post(request, function(data) {
	        $("#guidelinesContent").load(page);
	    });
	}
	
	function getDetails(id){
		loadDetailsWithReq("/proddev/controller?manager=dataAccessManager&method=42&dfxGId="+id,"content/project/devTools/workspace/dfX/info/detailedDfXGInfo.jsp");
	}

</script>

<%
	List<DfXGuidelines> guidelinesByDFXConcept = (List)session.getAttribute("guidelinesByDFXConcept");
%>

		
<select class="regInput" id="dfxGuidelines" name="dfxGuidelines" onchange="getDetails(this.value)" size="7" style="width:100%; margin-top:10px; overflow:auto;">
	<%for(int i=0; i<guidelinesByDFXConcept.size(); i++){ 
		DfXGuidelines dfxG = guidelinesByDFXConcept.get(i);%>
		<option value="<%=dfxG.getId() %>"><%=dfxG.getGuideline() %></option>
	<%} %>
</select>